<?php
class Cartpanel_CartController extends Ext_Controller_SecureAction
{
	public function preDispatch()
	{
		parent::preDispatch();
		/**
		 * The ws don't have layout or view asociety
		 */
		ini_set("soap.wsdl_cache_enabled", 0); 
		$this->_helper->layout->disableLayout();
		$this->_helper->viewRenderer->setNoRender();
	}
    public function orderAction()
	{
		if(isset($_GET['wsdl'])) {
	    	$soap = new Zend_Soap_AutoDiscover();
		} else {
		    $soap = new Zend_Soap_Server("http://cart.ext.dev:8001/cart/order/?wsdl");
		}
		$soap->setClass('Cart_Order');
		$soap->handle();
    }
}